# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=fdupes
pkgver=2.1.1
pkgrel=0
pkgdesc="identifying or deleting duplicate files residing within specified directories"
url="https://github.com/adrianlopezroche/fdupes"
arch="all"
license="MIT"
makedepends="ncurses-dev pcre2-dev"
subpackages="$pkgname-doc"
source="https://github.com/adrianlopezroche/fdupes/releases/download/v$pkgver/fdupes-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX="/usr" install
}

sha512sums="41b7920b1cdf9b5c6029d8adaa37cf65c9880d88e466abf1b97e4fbdb7621ad045f1b0499dbc8b28276b2a2cbe623b910607375dafe7fddce50052b4f04598a8  fdupes-2.1.1.tar.gz"
